<!--
  @author duanzuocai
  @since 2018/10/19 23:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>部门数据权限列表</title>
</head>
<body>

<div class="layui-fluid">

    <!--面包屑-->
    <blockquote class="layui-crumb">
        组织关系&nbsp;&nbsp;>&nbsp;&nbsp;
        <a lay-href="/mc/dept/list.action" lay-text="部门管理" th:text="部门管理">部门管理</a>
        >&nbsp;&nbsp;数据权限
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/mc/permit/data/list.action">
            <div class="layui-form" th:include="mc/permitdata/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <table class="layui-hide" id="zmn-permitdata-table" lay-filter="zmn-permitdata-table"></table>
            <script type="text/html" id="zmn-permitdata-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/mc/permit/data/del.action')}">
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del">删除权限</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/mc/permit/data/detail.action')}">
                            <button class="layui-btn layui-btn-sm layui-btn-primary">
                                <i class="layui-icon"></i>
                                <a onclick="toEditPermit()">权限管理</a>
                            </button>
                        </zmn>
                    </div>
                </div>
            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/mc/permit/data/list.action')}]],
        hasEdit: [[${#authPermit.checkPermit('/mc/permit/data/detail.action')}]],
        totalCount: [[${vo.totalCount}]],
        deptId: [[${vo.deptId}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        art_permitdata_list: "mc/permitdata/zmn.art.permitdata.list",
    }).use(['index', 'art_permitdata_list']);

</script>
</body>
</html>